package com.explment.lens.controller.role;

import com.explment.lens.entity.SysRoleMenuOptionsEntity;
import com.explment.lens.service.SysRoleMenuOptionsService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 角色和菜单下的功能关联 controller
 */
@RestController
@RequestMapping("/sysRoleMenuOptionsEntity")
public class SysRoleMenuOptionsController {
    @Autowired
    private SysRoleMenuOptionsService sysRoleMenuOptionsEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysRoleMenuOptionsEntityService.getById(id));
    }
}